/*
 * @Author: xiongchao
 * @Date: 2024-02-28 17:15:05
 * @LastEditors: xiongchao
 * @LastEditTime: 2024-02-29 09:40:54
 * @Description: TODO
 */
const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: config => {
    config.resolve.alias.set('@',path.resolve(__dirname,'src'))
  },
  lintOnSave: false,
  devServer: {
    open: true,
    port: 8080,
    proxy: {
      '/api': {
        target: 'http://localhost:3000',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    },
  },
})
